package cn.tedu.antcolony.market.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class ClueUpdateInfoParam implements Serializable {

    @ApiModelProperty(value = "线索来源", required = false, example = "抖音")
    private String source;

    @NotEmpty(message = "添加线索失败，必须提交线索名称！")
    @ApiModelProperty(value = "线索名称", required = true, example = "字节跳动")
    private String name;

    @ApiModelProperty(value = "成交机会", required = false, example = "30%")
    private String chance;

    @ApiModelProperty(value = "区域", required = false, example = "东北")
    private String area;

    @ApiModelProperty(value = "线索地址", required = false, example = "长春")
    private String address;

    @NotEmpty(message = "添加线索失败，必须提交手机号！")
    @ApiModelProperty(value = "线索手机号", required = true, example = "15271884958")
    private String phone;

    @ApiModelProperty(value = "联系人", required = false, example = "王大拿")
    private String linkman;

    @ApiModelProperty(value = "线索邮箱", required = false, example = "1730995807@qq.com")
    private String mailbox;

    @ApiModelProperty(value = "创建人", required = false, example = "大聪明")
    private String createMan;

    @ApiModelProperty(value = "分配人", required = false, example = "小聪明")
    private String assignMan;

/*    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "分配时间", required = false, example = "2023-06-11 12:12:12")
    private LocalDateTime assignTime;*/

    @ApiModelProperty(value = "线索状态码", required = false, example = "1")
    private Integer state;

    @ApiModelProperty(value = "有效状态", required = false, example = "1")
    private Integer isValid;


}